#include "CLocus.h"

CLocus::CLocus(): iLocusNum(-1), iDirection(0), iKeyFrame(-1), iFrameLength(0), 
	fLocusSpeed(0.0){}

CLocus::CLocus(int inILocusNum, int InIDirection, int inIKeyFrame, int inIFrameLength, float inFLocusSpeed, 
	vector<float>::const_iterator begin, vector<float>::const_iterator end):
	iLocusNum(inILocusNum), iDirection(InIDirection), iKeyFrame(inIKeyFrame), iFrameLength(inIFrameLength), 
		fLocusSpeed(inFLocusSpeed), arrParameter(begin, end){}

CLocus* CloneCLocus(const CLocus* inLocus){
	if(inLocus != NULL){
		CLocus* temp = NULL;
		temp = new CLocus(*inLocus);
		return temp;
	}
	else
		return NULL;
}

CLocus::CLocus(int inIKeyFrame, int inIFrameLength, float inA, float inFLocusSpeed):
	iKeyFrame(inIKeyFrame), iFrameLength(inIFrameLength), fLocusSpeed(inFLocusSpeed),
		iLocusNum(1){
	arrParameter.push_back(inA);
}
